package cn.itcast.dao;

import cn.itcast.domain.Course;
import cn.itcast.domain.Student;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CourseDao {

    // 查询所有课程
    @Select("SELECT * FROM course")
    public List<Course> findAll();

}
